redistribute bgp

This command redistributes routes of the specified protocol or kind into OSPF.

Syntax

redistribute bgp
redistribute bgp route-map
redistribute bgp metric-type {1|2} 
redistribute bgp metric-type {1|2} route-map word
redistribute bgp metric <0-16777214>
redistribute bgp metric-type {1|2}  metric <0-16777214> metric 
<0-16777214> route-map word no redistribute bgp

Command

Description

metric

Defines the metric for redistributed routes

metric-type

Defines the OSPF exterior metric type for registered routes

1|2

Sets the OSPF exterior type - 1- metric, 2-metrics

word

Describes the pointer to route-map entries

Default

NA

Command Mode

Privileged User

Example

This example redistributes routes of the specified protocol or kind into OSPF.

(config-data)# router ospf     
(conf-router)# redistribute bgp